{include file="header.html"}
<link href="{$smarty.const.CSS_PATH}index.css" rel="stylesheet" type="text/css" />
<div class="content">
    <div style="height:20px;"></div>
    <div class="artcle_list">
        <div class="title">
            {if $categorys[$smarty.get.category-1]['name'] != ''}
                <h1>{$categorys[$smarty.get.category-1]['name']}</h1>
            {else}
                <h1>Home</h1>
            {/if}
            {if $articles == ''}
              <small>最后更新：2014-3-15</small>
            {/if}
        </div>
        <div class="artcle">
            <ul>
                {foreach from=$articles item=article}
                <li>
                    <div  class="desc">
                        <div style="width:700px;" class="addfile">
                            <!-- <a href=""><img src="images/bodyBg.jpg" width="700px" height="370px" alt="" title=""></a> -->
                        </div>
                        <div class="clrear"></div>
                        <div>
                            <h2>{$article['title']}</h2>
                            <p>
                                {$article['content']|strip_tags|mysubstr:600:true}
                            </p>
                            <small> By <a href="#">{$article['author']} </a>在 {$article['leavetime']|date_format:"%Y-%m-%d"} <a href=""> 评论 </a>: {$article['comm']} </small>
                            <p class="readmore"><a href="{$smarty.const.WEB_PATH}index.php?m=content&c=index&a=show&category={$article['typeid']}&aid={$article['id']}" data-id="{$article['id']}" data-category="{$smarty.get.category}">Read More</a></p>
                        </div>
                    </div>
                </li>
                {/foreach}
            </ul>
        </div>
        {if !empty($articles)}
            <div class="page"><a href="javascript:void(0)" class="indexreadmore" id="load">加载更多</a></div>
        {/if}
    </div>
    {include file="left.html"}
</div>
</div>
<div class="clrear"></div>
<script type="text/javascript" src="{$smarty.const.JS_PATH}jquery-1.8.3.min.js"></script>
{include file="footer.html"}
